home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
commodore-users-of-norman
/
CUON_21_(10-1984).d64
/
petals and rose
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2019-04-13
|
10KB
|
312 lines
1 GOTO910
2 REM ** ML STOP KEY DISABLE **
3 PRINT"x[169]=[141][169][141]X` [234][255][169][255][133][145]L4[234]x[169]1[141][169][234][141]X`
4 [153]"xhhh+hNOThhhhhhhPRINT#HRUNHX`111"
5 [153]"hhhhhhh`1"
6 [143] ** 4 - POP ML SUBROUTINE **
10 [143] **GENERAL INPUT ROUTINE **
15 :
30 :
35 [143] +++ INPUT SECTION +++
40 [151]UO,0:UR$[178]"":UI$[178]""
42 [139]UL[178]0[167]UL[178]80
45 [153]" CMDCMD";:[151]UC,0
50 [161]UI$:[139]UI$[178]""[167]50
55 [139]UI$[178][199](13)[175][195](UR$)[177][178]1[167][151]UC,1:[153]" CMD";:[137]85
60 [139]UI$[178][199](20)[167]105
62 [139] [195](UR$)[178][177]UL[167]50
65 [141]120:[143] CHECK FOR VALID CHARACTER
70 UR$[178]UR$[170]UI$
75 [153]UI$;
80 [137]50
85 [143] +++ CHECK FOR HELP REQUEST +++
90 [139]UR$[178]UX$[167]195:[143] EXIT TO HELP ROUTINE
95 [139]UF[178]1[167][141]240
100 UF[178]0:[153]:[142]
102 [143] ++ CHECK DELETE ++
105 [139][195](UR$)[179]1[167]50
110 UR$[178][200](UR$,[195](UR$)[171]1)
115 [153]"CMD CMDCMD";:[137]50
120 [143] ++ CHECK FOR VALID CHARACTERS ++
125 [139][195](US$)[178]0[167]150
130 [129]US[178]1[164][195](US$)
135 [139]UI$[178][202](US$,US,1)[167][142]
140 [130]
145 UI$[178]"":[142]
150 [143] ** STANDARD INPUT **
152 [139][198](UI$)[178]46[167][142]
155 [139]UI$[178][199](32)[167][142]
160 [139][198](UI$)[179]48[176][198](UI$)[177]57[167]170
165 [142]
170 [139][198](UI$)[179]65[176][198](UI$)[177]90[167]180
175 [142]
180 [139][198](UI$)[179]193[176][198](UI$)[177]218[167]UI$[178]"":[142]
185 [139][194](UT)[178]UU%[167]UI$[178][199]([198](UI$)[171]128):[142]
187 [142]
190 UI$[178]"":[142]
195 UF[178]1:[143] +++ HELP ROUTINE EXIT +++
197 [141]250
200 [141]245
205 [129]UQ[178]UB[164](UB[170]800)
210 UQ%(UQ[171]UB)[178][194](UQ):[130]:[153]"LOAD"
215 UZ[178]1:UV%[178][194](UT)
216 [137]300
217 UZ[178]0:US$[178]UJ$:UG$[178]UK$:UP[178]UJ:UL[178]UK
218 [139][194](50003)[178]0[167][151]53281,1:[153]"LOAD";:[151]53281,6:[151]53280,14:[137]220
219 [153]"LOAD";
220 UT$[178]UL$:[151]UT,UV%:[129]UQ[178]UB[164](U2%[172]256[170]U1%[170]U3%[171]3)
225 [151]UQ,UQ%(UQ[171]UB):[130]
230 [151]U1,U1%
232 [151]U2,U2%
233 [151]U4,U4%
234 [151]U3,U3%[171]1
235 [137]35
240 UD%[178]((U2%[172]256[170]U1%[170]U3%)[171]UB)[173]40:[153][200](UD$,UD%[170]1):[142]
245 [153][200](UD$,24);" HELP COMING WAIT ":[142]
250 U1%[178][194](U1):U2%[178][194](U2):U3%[178][194](U3):U4%[178][194](U4)
251 UJ$[178]US$:UK$[178]UG$:UL$[178]UT$:UJ[178]UP:UK[178]UL
255 [142]
300 [143] ** MENU **
301 :
302 [153]"LOAD":[151]UT,UU%:[139][194](50003)[178]0[167][151]53281,9:[151]53280,8
303 :
305 [153]" MENU"
310 [153]" --------------------------------------"
315 [153]" 1. BEGIN PETALS AND ROSE""
320 PRINT" 2. STUDENT INSTRUCTIONS"
325 PRINT" 3. TEACHER INSTRUCTIONS"
335 PRINT" 4. QUIT"
340 PRINT" --------------------------------------"
345 PRINT" PRESS A NUMBER KEY (1-4) ";
350 UL=1:US$="1234":GOSUB35:REM INPUT ROUTINE
352 US$=""
355 ONVAL(UR$)GOSUB1000,400,500,396
360 GOTO300
395 REM ** RE-ENABLE STOP KEY AND END **
396 IFPEEK(50003)<>1ANDPEEK(50003)<>160ANDPEEK(50003)<>0THEN399
397 SYSUU+71:IFPEEK(50003)=0THENPOKE53281,6:POKE53280,14
398 PRINT"[154][147]":END
399 GOSUB875:RETURN
400 REM ** STUDENT INSTRUCTIONS **
405 PRINT"[147]":POKEUT,UL%:IFPEEK(50003)=0THENPOKE53281,0:POKE53280,0
410 UT$=" [208]ETALS AND [210]OSE":UP=0:UG$="[211]TUDENT [201]NST":GOSUB850
420 GOSUB1890
485 GOSUB835
490 IFUZ=1THENSYSUP%:GOTO217
499 RETURN
500 REM ** TEACHER INSTRUCTIONS **
501 PRINT"[147]":POKEUT,UL%:IFPEEK(50003)=0THENPOKE53281,2:POKE53280,10
502 UT$=" [208]ETALS AND [210]OSE": UP=0:UG$="[212]EACHER [201]NST":GOSUB850
503 PRINT" [212]O THE BEST OF OUR KNOWLEDGE,"
504 PRINT" THIS PROGRAM IS IN THE PUBLIC"
505 PRINT" DOMAIN. [201]F THIS IS NOT THE CASE"
506 PRINT" PLEASE CONTACT:"
507 PRINT" [195]OMMODORE [194]USINESS [205]ACHINES"
508 PRINT" 3370 [208]HARMACY [193]VE.
509 [153]" ATNGINCOURT, (null)NTARIO"
510 [153]" LENANADA (null)1(null) 2(null)4"
511 [153]" (416) 499-4292"
512 UP[178]1:[141] 835:[141] 850:
513 [153]" (null)ROGRAM (null)AME: (null)ETALS AND (null)OSE
514 PRINT" [215]RITTEN [194]Y : [213]NKNOWN
515 [153]" (null)PGRADED PEEKY :
516 PRINT" [212]HIS PROGRAM WILL RUN ON ANY
519 [153]" (null)VAL(null) 64 LEN(null)(null)(null)(null)(null)VAL(null)
520 PRINT" [195][207][205][205][207][196][207][210][197] 64 [195][207][205][208][213][212][197][210]
521 [141]835
590 [139]UZ[178]1[167][158]UP%:[137]217
599 [142]
600 [143] ** PROGRAM MODIFICATION INST **
601 [153]"LOAD":[151]UT,UL%
605 UP[178]0:UG$[178]"(null)ROGRAM (null)OD":[141]850
660 [141]835
690 [139]UZ[178]1[167][158]UP%:[137]217
699 [142]
700 [143] ** TO USE 8032 LOAD CBM4032 **
710 [153]"LOADBEFORE RUNNING THIS PROGRAM ON AN 8032
720 PRINT" LOAD THE 'CBM 4032' PROGRAM"
730 SYSUU+71
740 END
800 REM ** T I T L E P A G E **
802 PRINT"[147]";:POKEUT,UU%:IFPEEK(50003)=0THENPOKE53280,14:POKE53281,6
804 FORI=1TO38:PRINT"[166][146]";:NEXT
806 FORI=1TO22:PRINT"[157][166][146]";:NEXT
808 FORI=1TO37:PRINT"[157][157][166][146]";:NEXT
810 FORI=1TO22:PRINT"[145][157][166][146]";:NEXT
812 PRINT"[169] [146]
814 [153]" WAIT WAITSTEP
816 PRINT" [146] [163][223]
818 [153]"(null) WAIT
820 PRINT"C O M M O D O R E
822 [153]"EDUCATIONAL
824 PRINT"SOFTWARE
826 [143] ** COMMODORE LOGO **
827 [153][200](UD$,24);"PRESS SPACE BAR OR WAITWAIT":I[178]0
828 [161]A$:[139]A$[179][177]" "[167]I[178]I[170]1:[139]I[179]250[167]828
830 T1$[178]"":T2$[178]"":T3$[178]"":T4$[178]"":I[178]0
832 [137]300
835 [143] ** SPACE BAR PRESS **
840 [151]UO,0:[153][200](UD$,24);"PRESS SPACE BAR TO CONTINUEWAIT"
844 [161]UI$:[139]UI$[179][177]" "[167]844
846 [142]
850 [143] ** PAGE DESIGN ROUTINE **
852 UP[178]UP[170]1
855 [153]"LOAD"[200](UT$[170]UP$,21);[201](UP$[170]UG$[170][196](UP),18)
860 [153]" --------------------------------------"
864 [139]UH[179][177]0[167]870
865 [153][200](UD$,24);[200](UP$,7);"HELP - PRESS H <RETURN>"
870 UH[178]0:[153]"":[142]
875 [143] ** PLEASE WAIT REMARK **
880 [153][200](UD$,24);" ONE MOMENT PLEASE... "
885 [142]
900 [143] ** SET UP VARIABLES **
901 UX$[178]"H":[134]UQ%(1000):UB[178]32768:U1[178]196:U2[178]197:U3[178]198:U4[178]216:UC[178]167:UU[178]1024
902 UT[178]59468:UU%[178]12:UL%[178]14:UP%[178]1146:UM[178]32768:UO[178]158:[151] 50003,0
903 [139][194](50003)[178]0[167]UB[178]1024:U1[178]209:U2[178]210:U3[178]211:U4[178]214:UC[178]204:UU[178]2048
904 [139][194](50003)[178]0[167]UT[178]53272:UU%[178]21:UL%[178]23:UP%[178]2139:UM[178]1024:UO[178]198
905 UD$[178]""
906 UP$[178]" "
907 UT$[178]" (null)ETALS AND (null)OSECLOSECLOSECLOSE":[143] PLACE PROGRAM TITLE HERE !!!!!!!!!!!!!!!!!***
908 [142]
910 [143] ** SET VARIABLES **
915 [141]900
920 [143] ** CHECK FOR 8032 **
925 [153]"LOAD":[153]"CLOSE":[143] SHIFTED SPACE
930 [139][194](UB[170]40)[179][177]96[167][141]700
931 [143] ** MEMORY CHECK **
932 [139] [184](0)[177]2000[167]937
933 [153]"LOADTHIS MACHINE DOES NOT HAVE ENOUGH"
934 [153]"MEMORY TO RUN THIS PROGRAM !"
935 [158]UU[170]71
936 [128]
937 [153]"LOAD":[139][194](50003)[178]0[167]962
940 [143] ** BASIC 2.0 OR 4.0 OR C-64 SETUP **
941 [151]1075,133:[151]1076,144:[151]1077,234:[151]1079,4:[151]1080,133:[151]1081,145
942 [151]1091,155:[151]1098,133:[151]1099,144:[151]1100,234:[151]1103,133
943 [151]1104,145:[151]1105,234:[151]1082,234
945 [139][194](50003)[179][177]160[167]955
950 [151]1093,88:[151]1094,228:[151]1097,85:[151]1102,228:[137]965
955 [139][194](50003)[179][177]1[167]990
960 [151]1093,49:[151]1094,230:[151]1097,46:[151]1102,230:[137]965
962 [151]2099,141:[151]2100,20:[151]2101,3:[151]2103,8:[151]2104,141:[151]2105,21
963 [151]2106,3:[151]2115,145:[151]2117,52:[151]2118,234:[151]2121,49:[151]2122,141
964 [151]2123,20:[151]2124,3:[151]2126,234:[151]2127,141:[151]2128,21:[151]2129,3
965 [158]UU[170]48:[143] DISABLE STOP KEY
970 [141]800:[143] TITLE
980 [137]300:[143] MENU
990 [153]"LOADTHE PGM WILL NOT WORK ON THIS MACHINE!":[128]
1000 [139]UZ[178]1[167][158]UP%:[158]UP%:UZ[178]0:[143] ** PROGRAM STARTS HERE **
1001 [153]"LOAD";:[140]:[139][194](50003)[178]0[167][151]53281,6:[151]53280,14
1002 UG$[178]""
1005 CO[178]0:T[178]0
1010 UT$[178]" PETALS AND ROSE":[143] SUB5000 DRAW/ERASE DIE/SPOT
1015 CO[178]0:CO[178]CO[170]1
1020 UG$[178]"ROLL":UP[178]CO[171]1:UH[178]1: [141]850
1030 [141]5000
1090 [153]" THE NAME OF THE GAME IS SIGNIFICANT.":[153]
1100 [153]"THE SCORE IS ALWAYS EVEN.":[153]
1110 S[178]0
1120 D$[178]"DO":PX[178]5:PY[178]15:[141]2020
1130 R[178][181]([187](1)[172]6[170]3)
1140 [129]N[178]1[164]R:DN[178][181]([187](1)[172]6[170]1)
1150 D$[178]"DS":[141]2020:[130]N
1160 [139]DN[178][181]([186]([191](.80012)[172]10))[170]1[167]S[178]S[170][181]([191](.5008)[172]10)[173]2
1170 [139][181]([186]([193](1.502)[172]10))[170]2[178]DN[167]S[178]S[170][181]([190](.90021)[171][193](.2004))[170]4
1180 D$[178]"DO":PX[178]11:[141]2020
1190 [129]N[178]1[164]R:DN[178][181]([187](1)[172]6[170]1)
1200 D$[178]"DS":[141]2020:[130]N
1210 [139]DN[178][181]([186]([191](.80012)[172]10))[170]1[167]S[178]S[170][181]([191](.5008)[172]10)[173]2
1220 [139][181]([186]([193](1.502)[172]10))[170]2[178]DN[167]S[178]S[170][181]([190](.90021)[171][193](.2004))[170]4
1230 D$[178]"DO":PX[178]17:[141]2020
1240 [129]N[178]1[164]R:DN[178][181]([187](1)[172]6[170]1)
1250 D$[178]"DS":[141]2020:[130]N
1260 [139]DN[178][181]([186]([191](.80012)[172]10))[170]1[167]S[178]S[170][181]([191](.5008)[172]10)[173]2
1270 [139][181]([186]([193](1.502)[172]10))[170]2[178]DN[167]S[178]S[170][181]([190](.90021)[171][193](.2004))[170]4
1280 D$[178]"DO":PX[178]23:[141]2020
1290 [129]N[178]1[164]R:DN[178][181]([187](1)[172]6[170]1)
1300 D$[178]"DS":[141]2020:[130]N
1310 [139]DN[178][181]([186]([191](.80012)[172]10))[170]1[167]S[178]S[170][181]([191](.5008)[172]10)[173]2
1320 [139][181]([186]([193](1.502)[172]10))[170]2[178]DN[167]S[178]S[170][181]([190](.90021)[171][193](.2004))[170]4
1330 D$[178]"DO":PX[178]29:[141]2020
1340 [139][181]([186]([193](1.502)[172]10))[170]2[178]DN[167]S[178]S[170][181]([190](.90021)[171][193](.2004))
1350 [129]N[178]1[164]R:DN[178][181]([187](1)[172]6[170]1)
1360 D$[178]"DS":[141]2020:[130]N
1370 [139]DN[178][181]([186]([191](.80012)[172]10))[170]1[167]S[178]S[170][181]([191](.5008)[172]10)[173]2
1380 [139][181]([186]([193](1.502)[172]10))[170]2[178]DN[167]S[178]S[170][181]([190](.90021)[171][193](.2004))[170]4
1390 :
1391 [153]" GUESS THE SCORE: CMDCMD";:UL[178]2:US$[178]"H0123456789":
1392 UX$[178]"H":[141]35:G[178][197](UR$)
1400 [139][181](G[173]2)[178]G[173]2[167]1430
1410 [153]" ";
1420 [153]"THE SCORE IS ALWAYS EVEN.":[137]1390
1430 [139]G[178]S[167]T[178]T[170]1:[137]1450
1440 [153]:[153]"NO.. THIS ROLL'S SCORE IS";S:T[178]0:[137]1460
1450 [153]:[153]" YES... YOU NOW HAVE";T;"IN A ROW.":
1460 [141]5500
1470 [139]T[178]6[167]1500
1490 [137]1015
1500 UG$[178]"CONGRATULATIONS":UP[178]0:[141]850
1520 [153]:[153]" YOU ARE NOW QUALIFIED TO BECOME A"
1530 [153]:[153]" DULY CERTIFIED 'POTENTATE OF THE ROSE'."
1540 [141]835
1590 UG$[178]"RESPONS.":UP[178]0:[141]850
1594 [153]"RESPONSIBILITIES"
1595 [153]"USRUSRUSRUSRUSRUSRUSRUSRUSRUSRUSRUSRUSRUSRUSRUSR"
1600 [153]" 1. NEVER TO REVEAL THE SECRETS YOU HAVE"
1610 [153]" LEARNED HERE TODAY TO ANY UNWORTHY "
1620 [153]" PERSON, NO MATTER WHAT THEY MIGHT "
1630 [153]" OFFER, AND NAY, THOUGH EVEN THEY"
1640 [153]" THREATEN BODILY INJURY OR MAIMING."
1650 [141]835:[141]850
1660 [153]:[153]" 2. TO CONFER UPON WORTHY INDIVIDUALS,"
1670 [153]" THE TITLE AND HONOURS OF THE OFFICE"
1680 [153]" OF THE 'POTENTATE OF THE ROSE'."
1690 [153]" THE WORTH OF A CANDIDATE TO BE"
1700 [153]" JUDGED IN THE SAME MANNER AS YOU":[153]"ON";
1710 [153]" HAVE BEEN JUDGED ON THIS OCCASION.":[141]835:[141]850
1730 [153]:[153]" 3. OH, AND GET YOURSELF 5 DICE, YOU"
1740 [153]" CAN'T EXPECT TO CARRY A COMPUTER"
1750 [153]" AROUND WITH YOU EVERYWHERE YOU GO."
1760 [141]835
1800 [142]
1890 [153]" RIGHT$ WILL TEST YOU TO DETERMINE IF YOU"
1900 [153]" ARE AN INDIVIDUAL WORTHY OF THE TITLE"
1910 [153]" '(null)OTENTATE OF THE (null)OSE'."
1920 [153]" (null)HE TEST IS AS FOLLOWS:"
1930 [153]" 1WAIT. RIGHT$ WILL ROLL FIVE DICE.
1940 PRINT" 2[146]. [217]OU MUST GUESS THE SCORE."
1950 PRINT" 3[146]. [207]N GUESSING 6 CORRECT IN A ROW, [201]"
1960 PRINT" WILL ASSUME THAT YOU HAVE GUESSED"
1970 PRINT" THE SECRET AND WILL GRANT YOU THE":PRINT" HONOURED TITLE."
2000 RETURN
2020 PRINT"";
2030 FORI=1TOPY:PRINT"";:NEXTI
2040 FORI=1TOPX:PRINT"";:NEXTI
2050 IFD$="DO"THEN2090
2060 IFD$="DS"THEN2130
2070 IFD$="EO"THEN2110
2080 RETURN
2090 PRINT"[213][192][192][192][201][157][157][157][157][157][221][157][221][157][221][157][202][192][192][192][203][145][157][221][145][157][221][145][157][221]";
2100 RETURN
2110 PRINT" [157][157][157][157][157] [157] [157] [157] [145][157] [145][157][160][145][157][160]";
2120 RETURN
2130 ONDN+1GOTO2150,2160,2170,2190,2210,2220,2230
2140 RETURN
2150 PRINT" [157][157][157] [157][157][157] ";:RETURN
2160 PRINT" [157][157][157] [209] [157][157][157] ";:RETURN
2170 I=RND(1):IFI>.5THENPRINT"[209] [157][157][157] [157][157][157] [209]";:RETURN
2180 PRINT" [209][157][157][157] [157][157][157][209] ";:RETURN
2190 I=RND(1):IFI>.5THENPRINT"[209] [157][157][157] [209] [157][157][157] [209]";:RETURN
2200 PRINT" [209][157][157][157] [209] [157][157][157][209] ";:RETURN
2210 PRINT"[209][160][209][157][157][157] [157][157][157][209][160][209]";:RETURN
2220 PRINT"[209][160][209][157][157][157] [209] [157][157][157][209] [209]";:RETURN
2230 I=RND(1):IFI>.5THENPRINT"[209][209][209][157][157][157] [157][157][157][209][209][209]";:RETURN
2240 PRINT"[209][160][209][157][157][157][209][160][209][157][157][157][209][160][209]";:RETURN
5000 PRINTLEFT$(UD$,24)UP$""
5010 RETURN
5500 PRINTLEFT$(UD$,24)" PRESS SPACE[146] TO ROLL AGAIN, E[146] TO EXIT."
5510 GETXS$:IFXS$=""THEN5510
5520 IFXS$="E"THENSYSUP%:RETURN
5530 IFXS$<>" "THEN5510
5540 RETURN